package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.mapper.DtsAddressMapper;
import com.qf.pojo.DtsAddress;
import com.qf.service.DtsAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zwnan
 */
@Service
public class DtsAddressServiceImpl implements DtsAddressService {

    @Autowired
    private DtsAddressMapper dtsAddressMapper;

    @Override
    public IPage<DtsAddress> selectPage(Integer page, Integer limit, String sort, String order) {
        IPage<DtsAddress> iPage = new Page<>();
        return dtsAddressMapper.selectPage(iPage, new QueryWrapper<DtsAddress>().eq("deleted", false));

    }
}
